package com.rabbiter.entity;

import java.util.Date;

public class TicketApprovalHistory {
    private Integer historyId;

    private Integer ticketId;

    private Integer stepId;

    private Integer approver;

    private Date approvalTime;

    private String result;

    public Integer getHistoryId() {
        return historyId;
    }

    public void setHistoryId(Integer historyId) {
        this.historyId = historyId;
    }

    public Integer getTicketId() {
        return ticketId;
    }

    public void setTicketId(Integer ticketId) {
        this.ticketId = ticketId;
    }

    public Integer getStepId() {
        return stepId;
    }

    public void setStepId(Integer stepId) {
        this.stepId = stepId;
    }

    public Integer getApprover() {
        return approver;
    }

    public void setApprover(Integer approver) {
        this.approver = approver;
    }

    public Date getApprovalTime() {
        return approvalTime;
    }

    public void setApprovalTime(Date approvalTime) {
        this.approvalTime = approvalTime;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", historyId=").append(historyId);
        sb.append(", ticketId=").append(ticketId);
        sb.append(", stepId=").append(stepId);
        sb.append(", approver=").append(approver);
        sb.append(", approvalTime=").append(approvalTime);
        sb.append(", result=").append(result);
        sb.append("]");
        return sb.toString();
    }
}